import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import './assets/css/global.css'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
//自己的图标库
import './assets/fonts/iconfont.css'
import axios from 'axios'
axios.defaults.baseURL='http://localhost:8080/api/'
//请求拦截器
axios.interceptors.request.use(config=>{
  config.headers.Authorization=sessionStorage.getItem('token');
  return config;
});

Vue.prototype.$http=axios


Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
